#if defined(_WIN32)
	#include <GL\glut.h>
	#define OS_FOUND "windows"
#else
	#include <GL/glut.h>
	#define OS_FOUND "linux"
#endif

#include <iostream>

using namespace std;

void display()
{
	glClear(GL_COLOR_BUFFER_BIT);
	glBegin(GL_POLYGON);
		glVertex2f(-0.5,-0.5);
		glVertex2f(-0.5,0.5);
		glVertex2f(0.5,0.5);
		glVertex2f(0.5,-0.5);
	glEnd();
	
	glFlush();
}


int main(int argc, char** argv)
{
	cout << "OS: " << OS_FOUND << endl;
	glutInit(&argc, argv);
	glutCreateWindow("simple");
	glutDisplayFunc(display);
    glutMainLoop();
    return 0;
}

